/*
 * Copyright (c) 2012 Universidad Antonio de Nebrija.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0
 * which accompanies this distribution, and is available at
 * http://www.apache.org/licenses/LICENSE-2.0.html
 * 
 * Contributors:
 *    Universidad Antonio de Nebrija - initial API, implementation and documentation
 */
package com.nebrija.riif.parser;

import org.antlr.runtime.tree.Tree;

import com.nebrija.riif.model.RIIFElement;

/**
 * Interface that will be implemented for those classes which will create the model from the runtime Tree
 * @author asanchep
 *
 */
public interface RIIFParserProcessor {
	/**
	 * Generates an element from the Tree
	 * @param container where the element resides
	 * @param t The tree to be parsed
	 * @return the new element
	 */
	public RIIFElement apply (RIIFElement container, Tree t);
}
